import 'package:jyofservice/bean/j_c_histroy_entity.dart';

jCHistroyEntityFromJson(JCHistroyEntity data, Map<String, dynamic> json) {
	if (json['id'] != null) {
		data.id = json['id'];
	}
	if (json['ybbm'] != null) {
		data.ybbm = json['ybbm'].toString();
	}
	if (json['copy_year'] != null) {
		data.copyYear = json['copy_year'].toString();
	}
	if (json['lxr'] != null) {
		data.lxr = json['lxr'].toString();
	}
	if (json['lxdh'] != null) {
		data.lxdh = json['lxdh'].toString();
	}
	if (json['yhmc'] != null) {
		data.yhmc = json['yhmc'].toString();
	}
	if (json['jcsj'] != null) {
		data.jcsj = json['jcsj'].toString();
	}
	if (json['jcr'] != null) {
		data.jcr = json['jcr'].toString();
	}
	if (json['jcjg'] != null) {
		data.jcjg = json['jcjg'].toString();
	}
	if (json['jcbz'] != null) {
		data.jcbz = json['jcbz'].toString();
	}
	if (json['fhr'] != null) {
		data.fhr = json['fhr'].toString();
	}
	if (json['fhsj'] != null) {
		data.fhsj = json['fhsj'].toString();
	}
	if (json['fhjg'] != null) {
		data.fhjg = json['fhjg'].toString();
	}
	if (json['fhbz'] != null) {
		data.fhbz = json['fhbz'].toString();
	}
	if (json['jczt'] != null) {
		data.jczt = json['jczt'].toString();
	}
	if (json['files'] != null) {
		data.files = json['files'].toString();
	}
	if (json['filelist'] != null) {
		data.filelist = (json['filelist'] as List).map((v) => v.toString()).toList().cast<String>();
	}
	return data;
}

Map<String, dynamic> jCHistroyEntityToJson(JCHistroyEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['id'] = entity.id;
	data['ybbm'] = entity.ybbm;
	data['copy_year'] = entity.copyYear;
	data['lxr'] = entity.lxr;
	data['lxdh'] = entity.lxdh;
	data['yhmc'] = entity.yhmc;
	data['jcsj'] = entity.jcsj;
	data['jcr'] = entity.jcr;
	data['jcjg'] = entity.jcjg;
	data['jcbz'] = entity.jcbz;
	data['fhr'] = entity.fhr;
	data['fhsj'] = entity.fhsj;
	data['fhjg'] = entity.fhjg;
	data['fhbz'] = entity.fhbz;
	data['jczt'] = entity.jczt;
	data['files'] = entity.files;
	data['filelist'] = entity.filelist;
	return data;
}